const Router = require('@koa/router');

const router = new Router(); 

// 获取所有景点  //xxx111
router.get('/getAllAttraction',(ctx,next)=>{
    ctx.body = {
        code:200,
        msg:'获取数据成功',
        data:[
            {name:'故宫',desc:'故宫最大的博物院'},
            {name:'天安门',desc:'天安门升旗很好看'},
        ]
    }
})


module.exports = router
